const moduleB = {
    state:{
        countB :1
    },
    getters:{
        countB:(state)=>{
            return state.countB + 10
        }
    },
    mutations:{
        increaseB(state){
            state++
        }
    },
    actions:{
        asyncIncreaseB({commit}){
                commit('increaseB')
        },
        asyncGloBalMut({commit},playload) {
            commit('incrementMut',playload,{ root :true})
        },
        asyncGloBalAct({dispatch},playload) {
            dispatch('incrementMAct',playload,{root: true})
        }
    }

}


export default moduleB